package _interview75;

/**
 * 374. 猜数字大小
 */
public class No374 {
    public int guessNumber(int n) {
        int left = 0, right = n;
        while (left <= right) {
            int mid = left + (right - left) / 2;
            int guess = guess(mid);
            if (guess == 1) left = mid + 1;
            else right = mid - 1;
        }
        return left;
    }

    private int guess(int num) {
        return 0;
    }
}
